how to fit a function to data in origin